﻿using System;
using System.Web.Security;

namespace WebPages.Admin
{
    public partial class Statistics : System.Web.UI.Page
    {
        void GetUserInfo()
        {
            int totalNumberOfUsers;
            NumberOfUsersOnline.Text = Membership.GetNumberOfUsersOnline().ToString();

            Membership.GetAllUsers(0, 1, out totalNumberOfUsers);

            NumberOfUsers.Text = totalNumberOfUsers.ToString();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            GetUserInfo();
        }
    }
}